import $ from 'jquery';

import '../styles/resets.css';
import '../styles/common.css';
import '../styles/iconfont.css';
import '../styles/ui.scss';
import '../styles/header.scss';
import '../styles/bookNav.scss';
import '../styles/bookList.scss';
import '../styles/bookItem.scss';
import '../styles/noDataTip.scss';
import '../styles/footer.scss';

import BookNav from '../modules/BookNav';
import HeaderSearch from '../modules/HeaderSearch';

;(($) => {

    const bookNav = BookNav($),
          headerSearch = HeaderSearch($);
    
    const init = () => {
       bookNav.init();;//写类的形式
       headerSearch.init();//写函数的形式
    }

   init();
})($);